package com.zr.task.adapter;

import com.zh.baselibrary.base.BaseRecyclerAdapter;
import com.zh.model.task.error.ErrorStuInfoBean;
import com.zr.task.R;

import java.util.List;

public class CorrigedumDetailAdapter extends BaseRecyclerAdapter<ErrorStuInfoBean> {
    public CorrigedumDetailAdapter(List<ErrorStuInfoBean> mData) {
        super(mData);
    }


    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.activity_corrigendum_detail_title;
    }

    @Override
    protected void bindData(BaseViewHolder holder, int position, ErrorStuInfoBean errorStuInfoBean) {
        setItemText(holder.getView(R.id.tv_position), (position + 1) + "");
        setItemText(holder.getView(R.id.tv_subject), errorStuInfoBean.getSubjectName());
        setItemText(holder.getView(R.id.tv_name), errorStuInfoBean.getStudentName());
        setItemText(holder.getView(R.id.tv_class), errorStuInfoBean.getGradeName()+errorStuInfoBean.getClassName());
        setItemText(holder.getView(R.id.tv_redia_code), errorStuInfoBean.getRadioCode());
    }
}
